//
// Created by PC on 2023/6/15.
//

#include <iostream>
using namespace std;

int main()
{
    struct student{
        string name;
        string gender;
        int age;
        int number;
        int className;
        void printS(){
            printf("%s,%s,%d,%d,%d\n",name.c_str(),gender.c_str(),age,number,className);
        }
    };

    student a;
    a={"Nasa","male",11,26,54};
    a.printS();
    printf("name:%s",a.name.c_str());
    return 0;
}